﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdministracionRoles.aspx.cs" Inherits="BMSeguridad_AdministracionRoles"
    Title="AdministracionRoles" MasterPageFile="~/MasterPage.master" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<h1 style="text-align: left">
            &nbsp;&nbsp;&nbsp;Administraci&oacute;n de Roles</h1>
    <asp:ScriptManager id="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
        <contenttemplate>
        

<TABLE class="tablaForm" width=550 align=center><TBODY><TR><TD class="tdTit" noWrap colSpan=2>Administraci&oacute;n de Roles</TD></TR><TR><TD style="WIDTH: 20%" class="tdForm" align=right>Rol </TD><TD style="WIDTH: 80%" class="tdForm"><asp:TextBox id="txtNombreRol" runat="server" CssClass="cuadrotxt100"></asp:TextBox></TD></TR><TR><TD style="WIDTH: 20%" class="tdForm" align=right>Descripci&oacute;n </TD><TD style="WIDTH: 80%" class="tdForm"><asp:TextBox id="txtDescripcionRol" runat="server" CssClass="cuadrotxt100"></asp:TextBox> </TD></TR><TR><TD style="WIDTH: 20%" class="tdForm" align=right>Aplicaci&oacute;n </TD><TD style="WIDTH: 80%" class="tdForm"><asp:DropDownList id="ddlAplicaciones" runat="server"></asp:DropDownList></TD></TR><TR><TD class="tdBotones" align=center colSpan=2><asp:Button id="btnBuscar" onclick="btnBuscar_Click" runat="server" Width="75px" Text="Buscar"></asp:Button>&nbsp;<asp:Button id="btnNuevo" onclick="btnNuevo_Click" runat="server" Width="75px" Text="Nuevo"></asp:Button> <asp:Button id="btnCancelar" onclick="btnCancelar_Click" runat="server" Width="75px" Text="Cancelar"></asp:Button></TD></TR><TR align=center><TD align=center colSpan=2><asp:GridView id="dgRoles" runat="server" Width="100%" OnPageIndexChanging="dgRoles_PageIndexChanging" OnRowDeleting="dgRoles_RowDeleting" BorderColor="#999999" AutoGenerateColumns="False" DataKeyNames="Id_Rol" CellPadding="4" ForeColor="#333333" GridLines="Vertical" AllowPaging="True" OnSelectedIndexChanged="dgRoles_SelectedIndexChanged">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black"></FooterStyle>
<Columns>
<asp:TemplateField HeaderText="C&#243;digo">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:Label id="Id_Rol" runat="server" Text='<%# Bind("Id_Rol") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Rol">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:Label id="Nombre_Rol" runat="server" Text='<%# Bind("Nombre_Rol") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Descripci&#243;n">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:Label id="Descripcion_Rol" runat="server" Text='<%# Bind("Descripcion_Rol") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False">
<HeaderStyle ForeColor="White"></HeaderStyle>
<ItemTemplate>
<asp:LinkButton runat="server" Text="Seleccionar" CommandName="Select" CausesValidation="False" id="LinkButton1"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ShowHeader="False"><ItemTemplate>
<asp:LinkButton id="lnkEliminar" runat="server" Text="Eliminar" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('¿Seguro que desea eliminar este registro?');"></asp:LinkButton> 
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"></RowStyle>

<SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="#325FB9" ForeColor="White" Font-Names="Arial Rounded MT Bold" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="Gainsboro"></AlternatingRowStyle>
</asp:GridView></TD></TR></TBODY></TABLE></contenttemplate>
    </asp:UpdatePanel>

    <br />
        

<BR /><BR />

</asp:Content>
